Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit c99ec922aa6df4187c80cc9f111d11502d4c432d


Parents : 0a6f76e
Author : Mark Qvist <bc7291552be7a58f361522990465165c>
Signature : T66BB85Valid, signed by author
Date : 2026-06-26T11:59:33+02:00

Cleanup

Changes

1 files changed, 6 insertions(+), 12 deletions(-)


Diff

diff --git a/RNS/Transport.py b/RNS/Transport.py
index 9f4f37c35..8bb4f183f 100755
--- a/RNS/Transport.py
+++ b/RNS/Transport.py
@@ -3071,25 +3071,19 @@ class Transport:
def from_local_client(packet):
if hasattr(packet.receiving_interface, "parent_interface"):
return Transport.is_local_client_interface(packet.receiving_interface)
- else:
- return False
+ else: return False
@staticmethod
def is_local_client_interface(interface):
if hasattr(interface, "parent_interface"):
- if hasattr(interface.parent_interface, "is_local_shared_instance"):
- return True
- else:
- return False
- else:
- return False
+ if hasattr(interface.parent_interface, "is_local_shared_instance"): return True
+ else: return False
+ else: return False
@staticmethod
def interface_to_shared_instance(interface):
- if hasattr(interface, "is_connected_to_shared_instance"):
- return True
- else:
- return False
+ if hasattr(interface, "is_connected_to_shared_instance"): return True
+ else: return False
@staticmethod
def detach_interfaces():


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────